﻿namespace Manhua3.Provider
{
    using Manhua3.Client;
    using Manhua3.Common;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    public static class DefaultProvider
    {
        private static IComicProvider _default;
        public static IComicProvider Default
        {
            get
            {
                if (_default == null)
                {
                    _default = ComicProviderFactory
                        .Create(Global.ClientOption.DefaultProviderName);
                }

                return _default;
            }
        }

        static DefaultProvider() 
        {

        }
    }
}
